package cn.kgc.ffzw.day20;

public class BeiSong {


    public void getResult(int result){

        if (result==1){
            throw  new Except("吃芥末1");
        }else if(result==2){
            throw  new Except("吃芥末2");
        }else if(result==3){
            System.out.println("写代码");
        }else{
            System.out.println("????");
        }
    }
}
